package com.hypo.hystrixservice.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: haibo.tang2
 * @Date: 2021/11/12
 * @Description:
 **/
@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/getUserInfo")
    public String getUserInfo(String userId){
        return "{\"id\": " + userId + ", \"name\": \"iphone7手机\", \"age\": 20, \"sex\":1}";
    }
}
